﻿namespace EditorTestPlugin
{
    using System.Windows.Forms;

    using Creek.Extensibility.Plugins;

    using Editor.Contracts;
    using Editor.Contracts.Menu;

    [PlugIn("Test")]
    public class Plugin : PlugIn<IEditorApplication>, IEditorPlugIn
    {
        public void Do()
        {
            var menu = this.Application.ApplicationProxy.GetMenu("project");
            menu.DropDownItems.Add(new Seperator());
            menu.DropDownItems.Add("Compile to EXE");
        }

        public void OnSelect()
        {
            MessageBox.Show("Plugin works");
        }
    }
}